package com.liu.producer;

import com.liu.User;
import com.liu.generator.impl.Generators;
import com.liu.producer.message.Message;
import com.liu.serialization.SerializationTypeEnum;

/**
 * Hello world!
 */
public class Producer {

    public static void main(String[] args) {
        Client client = Client.getClient("localhost", 9111);
        User user = new User();
        user.setName("张三");
        user.setAge(18);
        client.send(new Message(Generators.IdWorker,"user", SerializationTypeEnum.JSON,user));
    }
}
